package com.jy.adscm.operation.base.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author zyl
 * @since 2018-11-29
 */
public class JyProviderGoods implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField("provider_id")
    private Integer providerId;
    @TableField("goods_id")
    private Integer goodsId;
    private String minnums;
    private String cgunit;
    private String foredate;
    private String transportdate;
    private String transporttype;
    private String period;
    private Date buildtime;
    private String cooperationstate;
    private String createperson;
    @TableField(exist = false)
    private String createpersonName;
    private Date createtime;
    @TableField(exist = false)
     private JyCustomerProvider jyCustomerProvider;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getProviderId() {
        return providerId;
    }

    public void setProviderId(Integer providerId) {
        this.providerId = providerId;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public String getMinnums() {
        return minnums;
    }

    public void setMinnums(String minnums) {
        this.minnums = minnums;
    }

    public String getCgunit() {
        return cgunit;
    }

    public void setCgunit(String cgunit) {
        this.cgunit = cgunit;
    }

    public String getForedate() {
        return foredate;
    }

    public void setForedate(String foredate) {
        this.foredate = foredate;
    }

    public String getTransportdate() {
        return transportdate;
    }

    public void setTransportdate(String transportdate) {
        this.transportdate = transportdate;
    }

    public String getTransporttype() {
        return transporttype;
    }

    public void setTransporttype(String transporttype) {
        this.transporttype = transporttype;
    }

    public String getPeriod() {
        return period;
    }

    public void setPeriod(String period) {
        this.period = period;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getBuildtime() {
        return buildtime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setBuildtime(Date buildtime) {
        this.buildtime = buildtime;
    }

    public String getCooperationstate() {
        return cooperationstate;
    }

    public void setCooperationstate(String cooperationstate) {
        this.cooperationstate = cooperationstate;
    }

    public String getCreateperson() {
        return createperson;
    }

    public void setCreateperson(String createperson) {
        this.createperson = createperson;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getCreatetime() {
        return createtime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getCreatepersonName() {
        return createpersonName;
    }

    public void setCreatepersonName(String createpersonName) {
        this.createpersonName = createpersonName;
    }

    public JyCustomerProvider getJyCustomerProvider() {
        return jyCustomerProvider;
    }

    public void setJyCustomerProvider(JyCustomerProvider jyCustomerProvider) {
        this.jyCustomerProvider = jyCustomerProvider;
    }

    @Override
    public String toString() {
        return "JyProviderGoods{" +
                "id=" + id +
                ", providerId=" + providerId +
                ", goodsId=" + goodsId +
                ", minnums='" + minnums + '\'' +
                ", cgunit='" + cgunit + '\'' +
                ", foredate='" + foredate + '\'' +
                ", transportdate='" + transportdate + '\'' +
                ", transporttype='" + transporttype + '\'' +
                ", period='" + period + '\'' +
                ", buildtime=" + buildtime +
                ", cooperationstate='" + cooperationstate + '\'' +
                ", createperson='" + createperson + '\'' +
                ", createpersonName='" + createpersonName + '\'' +
                ", createtime=" + createtime +
                ", jyCustomerProvider=" + jyCustomerProvider +
                '}';
    }
}
